﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.IO;
using WcfServices.Contracts;

namespace WcfServices.Client
{
    class Program
    {
        static void Main(string[] args)
        {
			using (ChannelFactory<IOperation> channelFactory = new ChannelFactory<IOperation>("OperationService"))
			{
				IOperation proxy = channelFactory.CreateChannel();

				using (proxy as IDisposable)
				{
					Console.WriteLine("{0}", proxy.GetWeather(string.Empty));
				}
			}

            Console.Read();
        }
    }
}
